import com.test.demo.Util.IpConfigurationUtils;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;
import sun.awt.SunHints;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
@SpringBootTest
public class test1 {
    public static <T> String test(T value){
        if(value instanceof  String){
            return "1";
        }else if(value instanceof List){
            return "2";
        }else if(value instanceof Map){
            return "3";
        }else if(value instanceof Set){
            return "4";
        }

        return null;
    }


    public static void main(String[] args) {
        List s = new ArrayList();
        System.out.println(test(s));
    }

    @Resource
    IpConfigurationUtils ip;

    @Test
    public  void test(){
        System.out.println(ip.getHostAddress());

    }
}
